package com.ticket.system.mapper;

import java.util.List;
import com.ticket.system.domain.YuanchuRefundOrderDetail;
import org.apache.ibatis.annotations.Param;

/**
 * 退款明细Mapper接口
 * 
 * @author ruoyi
 * @date 2023-10-31
 */
public interface YuanchuRefundOrderDetailMapper 
{
    /**
     * 查询退款明细
     * 
     * @param id 退款明细主键
     * @return 退款明细
     */
    public YuanchuRefundOrderDetail selectYuanchuRefundOrderDetailById(Long id);


    /**
     * 查询退款明细列表
     * 
     * @param yuanchuRefundOrderDetail 退款明细
     * @return 退款明细集合
     */
    public List<YuanchuRefundOrderDetail> selectYuanchuRefundOrderDetailList(YuanchuRefundOrderDetail yuanchuRefundOrderDetail);

    /**
     * 新增退款明细
     * 
     * @param yuanchuRefundOrderDetail 退款明细
     * @return 结果
     */
    public int insertYuanchuRefundOrderDetail(YuanchuRefundOrderDetail yuanchuRefundOrderDetail);

    /**
     * 修改退款明细
     * 
     * @param yuanchuRefundOrderDetail 退款明细
     * @return 结果
     */
    public int updateYuanchuRefundOrderDetail(YuanchuRefundOrderDetail yuanchuRefundOrderDetail);

    /**
     * 删除退款明细
     * 
     * @param id 退款明细主键
     * @return 结果
     */
    public int deleteYuanchuRefundOrderDetailById(Long id);

    /**
     * 批量删除退款明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYuanchuRefundOrderDetailByIds(@Param("array")Long[] ids);

    /**
     * 根据退款单id查询统计退票数量
     *
     * @param refundOrderId
     * @return
     */
    public int selectRefundTicketNumber(@Param("refundOrderId") Long refundOrderId);

    public int insertBatchRefundOrderDetail(@Param("array")List<YuanchuRefundOrderDetail> yuanchuRefundOrderDetails);
}
